<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title>修改员工信息</title>
        <link rel="stylesheet" href="list.css"/>
        
    </head>
    <body>
        <div id="con">
            <h1>修改员工信息</h1>
        <form action="empUpdate.php? e_id=<?php echo $k['e_id']?>" method="post">
                <table width="90%" >                    
                    <tr>
                        <th>姓名</th>
                        <td><input type="text" name="e_name" placeholder="输入姓名" value="<?php echo $k['e_name']?>" class="txt"/></td>
                    </tr>
                    <tr>
                        <th>所属部门</th> 
                     <td><input type="text" name="e_dept" placeholder="输入部门" value="<?php echo $k['e_dept']?>" class="txt"/></td>
                    </tr>
                    <tr>
                        <th>头像</th>
                        <td>
                            <input type="radio" name="e_img" value="images/1.jpg"
                                   <?php if ($k['e_img']=='images/1.jpg') 
                                               echo"checked='checked'"; 
                                           ?>/><img src="images/1.jpg" height="80px" width="80px" />
                            <input type="radio" name="e_img" value="images/2.jpg"
                                   <?php if ($k['e_img']=='images/2.jpg') 
                                               echo"checked='checked'"; 
                                           ?>/><img src="images/2.jpg" height="80px" width="80px"/>
                            <input type="radio" name="e_img" value="images/3.jpg"
                                   <?php if ($k['e_img']=='images/3.jpg') 
                                               echo"checked='checked'"; 
                                           ?>/><img src="images/3.jpg" height="80px" width="80px"/>
                            <input type="radio" name="e_img" value="images/4.jpg"
                                   <?php if ($k['e_img']=='images/4.jpg') 
                                               echo"checked='checked'"; 
                                           ?>/><img src="images/4.jpg"height="80px" width="80px" />                              
                        </td>
                    </tr>
                    <tr>
                        <th>出生日期</th>
                        <td><input type="datetime-local" name="date_of_birth" value="<?php $a=date_create($k['date_of_birth']);echo date_format($a,"Y-m-d")."T".date_format($a,"h:i:s"); ?>"/></td>
                    </tr>
                    <tr>
                        <th>入职时间</th>
                        <td><input type="datetime-local" name="date_of_entry" value="<?php $a=date_create($k['date_of_entry']);echo date_format($a,"Y-m-d")."T".date_format($a,"h:i:s"); ?>"/></td>
                    </tr>
                    <tr>
                        <th></th>
                        <td>
                            <input type="submit" value="修改信息"/>
                        </td>
                    </tr>
                    
                </table>
                
            </form>
        </div>
    </body>
</html>
